package StudyCode.summary.Basic.myint;

import java.util.Scanner;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class TrapezoidPerimeter {
	public static void main(String[] args) {
		double upperBottom = 0;
		double lowerBottom = 0;
		double waist1 = 0;
		double waist2 = 0;

		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入梯形上底并回车:");
		upperBottom = scanner.nextDouble();
		System.out.println("请输入梯形下底并回车:");
		lowerBottom = scanner.nextDouble();
		System.out.println("请输入梯形第一个腰并回车:");
		waist1 = scanner.nextDouble();
		System.out.println("请输入梯形第二个腰并回车:");
		waist2 = scanner.nextDouble();
		double area = upperBottom + lowerBottom + waist1 + waist2;
		System.out.println("梯形周长是:" + area);
	}
}
